package com.cgt.springboot.controller;

import com.cgt.springboot.annotation.MyLog;
import com.cgt.springboot.pojo.Admin;
import com.cgt.springboot.pojo.OperLog;
import com.cgt.springboot.pojo.query.AdminQuery;
import com.cgt.springboot.service.IOperLogService;
import com.cgt.springboot.util.PageResult;
import com.cgt.springboot.util.Result;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/operlog")
public class OperLogController {
	@Autowired
	private IOperLogService operLogService;

	@RequestMapping(value = "/add", method = RequestMethod.POST)
	public Result add(OperLog operLog) {
		System.out.println("OperLogController.add");
		operLogService.add(operLog);
		return Result.ok("添加成功");
	}
}
